<template>
  <el-form ref="form" label-width="100px" inline>
    <el-form-item>
      <el-input placeholder="输入姓名或地址" v-model="keyword" @keyup.enter.native="$emit('submit',keyword)"></el-input>
    </el-form-item>
    <el-form-item>
      <el-button type="primary" @click="$emit('submit',keyword)">搜索</el-button>
    </el-form-item>
  </el-form>
</template>

<script>
export default {
  name: "SearchForm",
  data(){
    return{
      keyword:''
    }
  },
}
</script>

<style scoped>

</style>
